package com.wobaby.vo;

public class MessagerVO {
	private int messageID;
	private int senderID;
	private int recieveID;
	private int contentID;
	private String sattus;
	public int getMessageID() {
		return messageID;
	}
	public void setMessageID(int messageID) {
		this.messageID = messageID;
	}
	public int getSenderID() {
		return senderID;
	}
	public void setSenderID(int senderID) {
		this.senderID = senderID;
	}
	public MessagerVO(int messageID, int senderID, int recieveID,
			int contentID, String sattus) {
		super();
		this.messageID = messageID;
		this.senderID = senderID;
		this.recieveID = recieveID;
		this.contentID = contentID;
		this.sattus = sattus;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + contentID;
		result = prime * result + messageID;
		result = prime * result + recieveID;
		result = prime * result + ((sattus == null) ? 0 : sattus.hashCode());
		result = prime * result + senderID;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MessagerVO other = (MessagerVO) obj;
		if (contentID != other.contentID)
			return false;
		if (messageID != other.messageID)
			return false;
		if (recieveID != other.recieveID)
			return false;
		if (sattus == null) {
			if (other.sattus != null)
				return false;
		} else if (!sattus.equals(other.sattus))
			return false;
		if (senderID != other.senderID)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "MessagerVO [messageID=" + messageID + ", senderID=" + senderID
				+ ", recieveID=" + recieveID + ", contentID=" + contentID
				+ ", sattus=" + sattus + "]";
	}
	public int getRecieveID() {
		return recieveID;
	}
	public void setRecieveID(int recieveID) {
		this.recieveID = recieveID;
	}
	public int getContentID() {
		return contentID;
	}
	public void setContentID(int contentID) {
		this.contentID = contentID;
	}
	public String getSattus() {
		return sattus;
	}
	public void setSattus(String sattus) {
		this.sattus = sattus;
	}

}
